package zzj.campus_book_sharing_platform.Service.impl;

import org.springframework.stereotype.Service;
import zzj.campus_book_sharing_platform.Dao.borrowDao;
import zzj.campus_book_sharing_platform.Service.BorrowService;

import javax.annotation.Resource;

@Service
public class BorrowServiceImpl implements BorrowService {
    @Resource
    private borrowDao borrowDao;

    @Override
    public int selectBorrowByUserId(int bookHoldId) {
        return borrowDao.selectBorrowByUserId(bookHoldId);
    }

    @Override
    public int selectHoldByUserId(int bookBorrowerId) {
        return borrowDao.selectHoldByUserId(bookBorrowerId);
    }
}
